using UnityEngine;
using System.Collections;

public class Bonus : MonoBehaviour {

	Vector3 origin;
	// Use this for initialization
	void Start ()
    {
        origin = rigidbody.position;
	}
	
	// Update is called once per frame
	void Update ()
    {
		rigidbody.AddTorque(Vector3.up * 0.002f, ForceMode.VelocityChange);
        rigidbody.position = origin + Vector3.up * 0.1f * Mathf.Sin(Time.time * 3.0f);
	}
}
